package com.gupaoedu.concurrent.thread.example;

/**
 * 2019/5/12
 * created by chenpp
 * 行程类
 * 酒店/机票/火车
 */
public class Itinerary {
    private String schedultType;
    private String uid;
    private HotelDetail hotelDetail;
    private FlightDetail flightDetail;
    private TrainDetail trainDetail;

    public Itinerary() {
    }

    public Itinerary(String schedultType, String uid) {
        this.schedultType = schedultType;
        this.uid = uid;
    }

    public String getSchedultType() {
        return schedultType;
    }

    public void setSchedultType(String schedultType) {
        this.schedultType = schedultType;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public HotelDetail getHotelDetail() {
        return hotelDetail;
    }

    public void setHotelDetail(HotelDetail hotelDetail) {
        this.hotelDetail = hotelDetail;
    }

    public FlightDetail getFlightDetail() {
        return flightDetail;
    }

    public void setFlightDetail(FlightDetail flightDetail) {
        this.flightDetail = flightDetail;
    }

    public TrainDetail getTrainDetail() {
        return trainDetail;
    }

    public void setTrainDetail(TrainDetail trainDetail) {
        this.trainDetail = trainDetail;
    }

    @Override
    public String toString() {
        return "Itinerary{" +
                "schedultType='" + schedultType + '\'' +
                ", uid='" + uid + '\'' +
                ", hotelDetail=" + hotelDetail +
                ", flightDetail=" + flightDetail +
                ", trainDetail=" + trainDetail +
                '}';
    }
}
